Skip to content

Add flag to detect-aws-credentials to allow missing keys#175

Merged
asottile merged 1 commit intopre-commit:masterfrom
miketheman:miketheman/allow-missing-aws
Feb 10, 2017
Merged

Add flag to detect-aws-credentials to allow missing keys#175
asottile merged 1 commit intopre-commit:masterfrom
miketheman:miketheman/allow-missing-aws

Conversation

@miketheman
Copy link
Copy Markdown
Contributor

In the event that there exists no configuration for AWS credentials and
they are not exported in to the current environment, a flag may be
passed to allow exiting the hook successfully.

Resolves #174

Signed-off-by: Mike Fiedler miketheman@gmail.com

Copy link
Copy Markdown
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Some minor things and then I'll merge.

Comment thread CHANGELOG Outdated
0.8.0
=====
- Add flag to allow aws detection to pass when no keys exist

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't bother with the changelog, I'll fill this out when I decide to make a release <3

'--allow-missing-credentials',
dest='allow_missing_credentials',
action='store_true',
help=('Allow hook to pass when no credentials are detected.')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parens aren't necessary here

In the event that there exists no configuration for AWS credentials and
they are not exported in to the current environment, a flag may be
passed to allow exiting the hook successfully.

Resolves pre-commit#174

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/allow-missing-aws branch from d9abfd7 to 312e721 Compare February 10, 2017 17:54
@miketheman
Copy link
Copy Markdown
Contributor Author

Comments addressed, thanks!

@asottile asottile merged commit e626cd5 into pre-commit:master Feb 10, 2017
@asottile
Copy link
Copy Markdown
Member

Thanks!

@miketheman miketheman deleted the miketheman/allow-missing-aws branch February 16, 2017 22:39
@AdityaSoni19031997

This comment was marked as off-topic.

@asottile

This comment was marked as off-topic.

@asottile

This comment was marked as off-topic.

@AdityaSoni19031997

This comment was marked as off-topic.

@pre-commit pre-commit locked as off-topic and limited conversation to collaborators Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants